2 * AITigerCompatibility.h
3 * AIUtilities.framework
5 * Created by David Smith on 10/28/07.
6 * Copyright 2007 The Adium Team. All rights reserved.
9 #ifndef AITigerCompatibility
11 # define AITigerCompatibility
13 # import <AvailabilityMacros.h>
15 # ifndef MAC_OS_X_VERSION_10_5
16 # define MAC_OS_X_VERSION_10_5 1050
17 # endif //ndef MAC_OS_X_VERSION_10_5
19 #if MAC_OS_X_VERSION_10_5 > MAC_OS_X_VERSION_MAX_ALLOWED
20 # define NS_REQUIRES_NIL_TERMINATION
22 # if __LP64__ || NS_BUILD_32_LIKE_64
23 typedef long NSInteger
;
24 typedef unsigned long NSUInteger
;
26 typedef int NSInteger
;
27 typedef unsigned int NSUInteger
;
30 # define NSIntegerMax LONG_MAX
31 # define NSIntegerMin LONG_MIN
32 # define NSUIntegerMax ULONG_MAX
34 # define NSINTEGER_DEFINED 1
36 # define NSDownloadsDirectory 15
38 typedef NSUInteger NSWindowCollectionBehavior
;
39 # define NSWindowCollectionBehaviorDefault 0
40 # define NSWindowCollectionBehaviorCanJoinAllSpaces 1 << 0
42 # define NSCellHitContentArea 1 << 0
45 @interface
NSWindow (NSWindowTigerMethods
)
46 - (void)setCollectionBehavior
:(NSWindowCollectionBehavior
)behavior
;
49 @interface
NSTextView (NSTextViewTigerMethods
)
50 - (void)setGrammarCheckingEnabled
:(BOOL
)flag
;
51 - (BOOL
)isGrammarCheckingEnabled
;
52 - (void)toggleGrammarChecking
:(id
)sender
;
55 @interface
NSSplitView (NSScrollViewTigerMethods
)
56 - (void)setPosition
:(float)position ofDividerAtIndex
:(NSInteger
)dividerIndex
;
60 #else //Not compiling for 10.5
62 # if !defined(NS_REQUIRES_NIL_TERMINATION)
63 # define NS_REQUIRES_NIL_TERMINATION __attribute__((sentinel))
66 #endif //MAC_OS_X_VERSION_10_5
68 #endif //AITigerCompatibility